package com.ushine.design.design.b_structural_type.f_flyweight.b_example;

/**
 * 围棋的棋子
 * 充当抽象亨元类
 *
 * @author yls
 */
public abstract class IgoChessman {

    public abstract String getColor();

    public void display() {
        System.out.println("棋子的颜色是：" + this.getColor());
    }

    public void newDisplay(Coordinates coordinates) {
        System.out.println("棋子的颜色：" + this.getColor() + ",棋子的位置：" + coordinates.getX() + "," + coordinates.getY());
    }
}
